package com.isorf.service.impl;

import com.isorf.mapper.adminmapper;
import com.isorf.pojo.admin;
import com.isorf.service.adminservice;
import com.isorf.util.responseresult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class adminserviceimpl implements adminservice {
    @Autowired
    private adminmapper adminmapper;

    @Override
    public Boolean login(String username, String password) {
        admin admin = adminmapper.login(username, password);
        if (admin != null) {
            return true;
        } else {
            return false;
        }

    }
    //service层调用mapper层

}

